<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue快速上手案例</title>
    <!-- 1.引入vue.js -->
    <script src="./js/vue.js"></script>
</head>
<body>
    <!-- 3.创建视图 -->
    <div id="div1">
        <input type="text" v-model="message"><br>
        {{message}}
    </div>
</body>
<!-- 2.创建Vue对象，并设置属性 -->
<script>
    new new Vue({
        el:"#div1",
        data:{
            message:"Hello Vue2"
        }
    })
</script>
</html>